#ifndef SERVER_H
#define SERVER_H

#include <QtNetwork>
#include <QVector>
#include <QObject>


class Server : public QObject
{
    Q_OBJECT

public:
    Server();
    ~Server();

    void sendAll(const QString &message);

private slots:
    void logOn();
    void receiveData();
    void logOff();

private:

    QTcpServer *server;
    QList<QTcpSocket *> listClients;
    quint16 sizeMessage;
    QVector<QString> data;


};


#endif // SERVER_H
